StdRRect
StdRRect The default Quickdraw roundRect-drawing routine
#include <Quickdraw.h> Quickdraw
void StdRRect(gVerb, theRect, ovalWidth, ovalHeight );
GrafVerb gVerb ; frame, paint, erase, invert, or fill
Rect *theRect ; roundRect to draw, in local coordinates
short ovalWidth ; width and . . .
short ovalHeight ; . . . height of oval for corners
This is Quickdraw's default low-level routine for drawing rounded-corner
rectangles. The roundRect is framed, painted, erased, inverted, or filled,
depending upon the grafVerb parameter.
gVerb is a GrafVerb enumerated-integer data type specifying the operation
to perform; it must be one of:
frame 0 draw the outline using current pen parameters
paint 1 fill with thePort->pnPat
erase 2 fill with thePort->bkPat
invert 3 toggle all bits enclosed by the object
fill 4 fill with thePort->fillPat
theRect is the address of an 8-byte Rect structure, expressed in local
coordinates, which defines the coordinates of the rounded-corner
rectangle.
ovalWidth and . . .
ovalHeight define the oval to be used in place of regular corners. See
FrameRoundRect for illustrations.
Returns: none

Notes: Use StdRRect only if your application intercepts the Quickdraw
bottleneck routines (see SetStdProcs).
All grafVerbs are performed using values taken from the current grafPort.
Output is clipped to portBits.bounds, portRect, visRgn, and clipRgn. This
function does not affect the pen position.
If a region is currently open and being formed (see OpenRgn), and
gVerb=frame, the roundRect's interior is added to the region's structure.
If you're recording a picture (see OpenPicture), StdRRect incorporates
the roundRect into its definition.